package com.hxh.dao;

import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.hxh.entity.ProjectDetail;
import com.hxh.entity.input.ProjectDetailInput;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface ProjectDetailDao {

    Integer insert(ProjectDetail pojo);

    int insertList(@Param("pojos") List<ProjectDetailInput> pojo);

    List<ProjectDetail> select(@Param("pojo") ProjectDetailInput pojo);

    ProjectDetail selectById(@Param("id") Integer id);

    int deleteById(@Param("id") Integer id);

    List<ProjectDetail> listPage(Pagination page, @Param("pojo") ProjectDetailInput pojo);

    int update(@Param("pojo") ProjectDetail pojo);

    int updateSelective(@Param("pojo") ProjectDetailInput pojo);

    int deleteByProjectId(int projectId);
}
